package com.ruoyi.basedata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.basedata.mapper.BdShopMapper;
import com.ruoyi.basedata.domain.BdShop;
import com.ruoyi.basedata.service.IBdShopService;

/**
 * 店铺Service业务层处理
 * 
 * @author xiefeng
 * @date 2023-03-02
 */
@Service
public class BdShopServiceImpl implements IBdShopService 
{
    @Autowired
    private BdShopMapper bdShopMapper;

    /**
     * 查询店铺
     * 
     * @param id 店铺主键
     * @return 店铺
     */
    @Override
    public BdShop selectBdShopById(Long id)
    {
        return bdShopMapper.selectBdShopById(id);
    }

    /**
     * 查询店铺列表
     * 
     * @param bdShop 店铺
     * @return 店铺
     */
    @Override
    public List<BdShop> selectBdShopList(BdShop bdShop)
    {
        return bdShopMapper.selectBdShopList(bdShop);
    }

    /**
     * 新增店铺
     * 
     * @param bdShop 店铺
     * @return 结果
     */
    @Override
    public int insertBdShop(BdShop bdShop)
    {
        return bdShopMapper.insertBdShop(bdShop);
    }

    /**
     * 修改店铺
     * 
     * @param bdShop 店铺
     * @return 结果
     */
    @Override
    public int updateBdShop(BdShop bdShop)
    {
        return bdShopMapper.updateBdShop(bdShop);
    }

    /**
     * 批量删除店铺
     * 
     * @param ids 需要删除的店铺主键
     * @return 结果
     */
    @Override
    public int deleteBdShopByIds(Long[] ids)
    {
        return bdShopMapper.deleteBdShopByIds(ids);
    }

    /**
     * 删除店铺信息
     * 
     * @param id 店铺主键
     * @return 结果
     */
    @Override
    public int deleteBdShopById(Long id)
    {
        return bdShopMapper.deleteBdShopById(id);
    }
}
